package com.yxinsur.imc.business.events.listener;

import com.yxinsur.imc.business.events.event.OrderCreateEvent;
import com.yxinsur.imc.business.events.event.TeamCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class TeamCreateEventListener implements ApplicationListener<TeamCreateEvent> {
    @Async
    @Override
    public void onApplicationEvent(TeamCreateEvent event) {
        System.out.println("团队信息录入成功：" + event.getImcTeam().toString()+",信息提示为:"+event.getMsg());
    }
}
